package com.feature50.makeover.chart;

import org.jfree.data.category.CategoryDataset;

public class ChartFactory {
    public static BarChart createBarChart(CategoryDataset model, boolean animated) {
        BarChartBars bars = new BarChartBars(model);
        BarChart chart = new BarChart(bars, animated);
        return chart;
    }

    public static BarChart createBarChart(CategoryDataset model, BarChartBars.ValueAxisPosition valueAxisPosition, boolean animated) {
        BarChartBars bars = new BarChartBars(model, valueAxisPosition);
        BarChart chart = new BarChart(bars, animated);
        return chart;
    }

}